import request from '@/utils/request'
export function listRecord(query) {
  return request({
    url: '/framework/monitorPlanItem/list',
    method: 'get',
    params: query
  })
}
// export function selectList(query) {
//   return request({
//     url: '/system/check/listSelect',
//     method: 'get',
//     params: query
//   })
// }
export function delQualitySupervisionRecord(qualityMonitorPlanItemIds) {
  return request({
    url: '/framework/monitorPlanItem/' + qualityMonitorPlanItemIds,
    method: 'delete'
  })
}
export function supervisionRecordAdd(data) {
  return request({
    url: '/framework/monitorPlanItem',
    method: 'post',
    data: data
  })
}
export function updategSupervisionRecord(data) {
  return request({
    url: '/framework/monitorPlanItem',
    method: 'put',
    data: data
  })
}
export function supervisionRecordInfo(qualityMonitorPlanItemId) {
  return request({
    url: '/framework/monitorPlanItem/' + qualityMonitorPlanItemId,
    method: 'get',
  })
}

// 质量计划
 export function planList(query) {
  return request({
    url: '/system/yearQualityMonitorPlan/planList',
    method: 'get',
    params: query
  })
}
export function itemList(query) {
  return request({
    url: '/system/yearQualityMonitorPlan/itemList',
    method: 'get',
    params: query
  })
}
export function userList(query) {
  return request({
    url: '/system/yearQualityMonitorPlan/userList',
    method: 'get',
    params: query
  })
}